import java.math.BigInteger;
import java.util.*;

public class Main{
    public static void main(String[] args) {
        int num=0;
       for (int i = 0; i <=64;i++) {
           for(int j = 0; j <=i;j++){
               num=i*i-2;
           }

        }
        System.out.println(num);

       String word = "aabbccddfwuwehfiwuefwkefnbwikuejfvbwejv";
       char[] arr=word.toCharArray();
       Map<String, Integer> map = new HashMap<>();
       for(int i = 0; i<arr.length;i++){
           Integer number=0;
           for(int j = 0; j<arr.length; j++){
               if(arr[i]==arr[j]){
                   number+=1;
                   map.put(""+arr[i],number);
               }
           }
        }
       word="";
       for(Map.Entry<String, Integer> entry : map.entrySet()){
           word+=""+entry.getKey()+""+entry.getValue();
//           System.out.println(entry.getKey()+"="+entry.getValue());
       }
       System.out.println(word);



       Scanner keyBordIn=new Scanner(System.in);
       char[] chArr=keyBordIn.next().toCharArray();
        HashSet<String> hashSetArr=new LinkedHashSet<>();

        for(int i = 0; i<chArr.length;i++){
            hashSetArr.add(""+chArr[i]);
        }
        System.out.println(hashSetArr);
    }

}

